home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13274 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.6 KB

  1. Path: news.cyberport.com!usenet
  2. From: tangent@cyberport.com (Warren Young)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Does Borland share these MSVC++ problems?
  5. Date: Sun, 24 Mar 1996 13:45:03 GMT
  6. Organization: none
  7. Message-ID: <31554f5c.13110582@news.cyberport.com>
  8. References: <4j2m6q$lg6@cnn.Princeton.EDU>
  9. NNTP-Posting-Host: ppp1.cyberport.com
  10. X-Newsreader: Forte Agent .99d/32.182
  11.  
  12. john@meenie.Princeton.EDU (John Saponara) wrote:
  13.  
  14. >1. Do index variables declared in the for statement persist after the loop?
  15.  
  16. For the moment, yes, I think so, though 5.0 may have changed this.  As
  17. you probably know, the new Draft Standard dictates that their scope is
  18. the for loop only.  Since Borland tracks standards pretty closely, I'd
  19. say that if it isn't "fixed" in 5.0, it will be in the next version.
  20. 4.5 uses the "old" rules, though.  Also, I'm sure you will be able to
  21. turn the "new" rules off with a command line switch.
  22.  
  23. >2. Is there no `bool' builtin type?
  24.  
  25. There is in 5.0, but not 4.5.  Also, if you're using OWL, it defines
  26. its own bool.  I think you can turn it off with a #define, though.
  27.  
  28. >3. Must I return a value from a non-void function
  29. >   even in a branch that calls exit(1)?
  30.  
  31. It will compile, but it will warn you about it.  You can turn it off,
  32. if you like.  I think the switch is -w-rvl.  Or, you can turn the
  33. warning off just for certain functions with the "warn" pragma.
  34.  
  35. >4. Is there no list of candidate conversions to help
  36. >   me find the cause of the compiler error:
  37. >   `>' : 2 overloads have similar conversions
  38. >   (for various operators)?
  39.  
  40. Huh?  Sorry, you lost me.
  41.  
  42. >5. Are the POSIX functions (particularly sleep, link, unlink) unavailable?
  43.  
  44. sleep and unlink are available.  What does link do?  If it has to do
  45. with UNIX symbolic and hard links, it _can't_ be available because DOS
  46. doesn't support them.  They should all be available under Windows NT,
  47. though, and BC++ will generate NT executables.
  48.  
  49. >6. Is there no iostream extension that takes the same vararg list as printf()?
  50. >   In g++ you can write, for example: cout.form( "%s\n", charArray );
  51.  
  52. Not yet, but I'm pretty sure it's coming, by way of ISO.  If you
  53. really need this, it should be trivial to lift the code from GNU's
  54. libg++ and drop it into Borland's standard library since the source
  55. code is included.
  56.  
  57. >I don't want to incite flames, only to know which (if any)
  58. >of these problems Borland C++ shares with MS Visual C++.
  59.  
  60. I hope I've helped, but I don't really know which alternative you want
  61. for each of these questions.  I mean, it isn't clear, for example, if
  62. you want sleep() or not.
  63.  
  64. Anyway, I hope that's the info you were looking for.
  65.  
  66. = Warren --
  67.